<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class ApplicationRecord extends Model
{
    protected $guarded = [];

    public function userInfo()
    {
        return $this->belongsTo('App\User', 'user_id');
    }

    public function userPersonnel()
    {
        return $this->belongsTo('App\UserPersonnel', 'user_id', 'user_id');
    }

    public function position()
    {
        return $this->belongsTo('App\Position', 'position_id');
    }

    public function basics()
    {
        return $this->belongsTo('App\Basic', 'user_id', 'uid');
    }

    public function company()
    {
        return $this->belongsTo('App\CompanyInfo', 'user_id', 'uid');
    }
}
